package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

public class OrderProcesses implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8472714335988479097L;

	private String orderProcessId;

	private String orderId;

	private String institutionId;

	private String institutionName;

	private String userId;

	private String userName;

	private String processMessage;

	private Date processDate;

	private Integer processType;

	private String processIp;

	private Integer orderStatus;

	public String getOrderProcessId() {
		return orderProcessId;
	}

	public void setOrderProcessId(String orderProcessId) {
		this.orderProcessId = orderProcessId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getInstitutionId() {
		return institutionId;
	}

	public void setInstitutionId(String institutionId) {
		this.institutionId = institutionId;
	}

	public String getInstitutionName() {
		return institutionName;
	}

	public void setInstitutionName(String institutionName) {
		this.institutionName = institutionName;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getProcessMessage() {
		return processMessage;
	}

	public void setProcessMessage(String processMessage) {
		this.processMessage = processMessage;
	}

	public Date getProcessDate() {
		return processDate;
	}

	public void setProcessDate(Date processDate) {
		this.processDate = processDate;
	}

	public Integer getProcessType() {
		return processType;
	}

	public void setProcessType(Integer processType) {
		this.processType = processType;
	}

	public String getProcessIp() {
		return processIp;
	}

	public void setProcessIp(String processIp) {
		this.processIp = processIp;
	}

	public Integer getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	@Override
	public String toString() {
		return "OrderProcesses [orderProcessId=" + orderProcessId + ", orderId=" + orderId + ", institutionId="
				+ institutionId + ", institutionName=" + institutionName + ", userId=" + userId + ", userName="
				+ userName + ", processMessage=" + processMessage + ", processDate=" + processDate + ", processType="
				+ processType + ", processIp=" + processIp + ", orderStatus=" + orderStatus + "]";
	}

	public OrderProcesses(String orderProcessId, String orderId, String institutionId, String institutionName,
			String userId, String userName, String processMessage, Date processDate, Integer processType,
			String processIp, Integer orderStatus) {
		super();
		this.orderProcessId = orderProcessId;
		this.orderId = orderId;
		this.institutionId = institutionId;
		this.institutionName = institutionName;
		this.userId = userId;
		this.userName = userName;
		this.processMessage = processMessage;
		this.processDate = processDate;
		this.processType = processType;
		this.processIp = processIp;
		this.orderStatus = orderStatus;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((institutionId == null) ? 0 : institutionId.hashCode());
		result = prime * result + ((institutionName == null) ? 0 : institutionName.hashCode());
		result = prime * result + ((orderId == null) ? 0 : orderId.hashCode());
		result = prime * result + ((orderProcessId == null) ? 0 : orderProcessId.hashCode());
		result = prime * result + ((orderStatus == null) ? 0 : orderStatus.hashCode());
		result = prime * result + ((processDate == null) ? 0 : processDate.hashCode());
		result = prime * result + ((processIp == null) ? 0 : processIp.hashCode());
		result = prime * result + ((processMessage == null) ? 0 : processMessage.hashCode());
		result = prime * result + ((processType == null) ? 0 : processType.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		result = prime * result + ((userName == null) ? 0 : userName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrderProcesses other = (OrderProcesses) obj;
		if (institutionId == null) {
			if (other.institutionId != null)
				return false;
		} else if (!institutionId.equals(other.institutionId))
			return false;
		if (institutionName == null) {
			if (other.institutionName != null)
				return false;
		} else if (!institutionName.equals(other.institutionName))
			return false;
		if (orderId == null) {
			if (other.orderId != null)
				return false;
		} else if (!orderId.equals(other.orderId))
			return false;
		if (orderProcessId == null) {
			if (other.orderProcessId != null)
				return false;
		} else if (!orderProcessId.equals(other.orderProcessId))
			return false;
		if (orderStatus == null) {
			if (other.orderStatus != null)
				return false;
		} else if (!orderStatus.equals(other.orderStatus))
			return false;
		if (processDate == null) {
			if (other.processDate != null)
				return false;
		} else if (!processDate.equals(other.processDate))
			return false;
		if (processIp == null) {
			if (other.processIp != null)
				return false;
		} else if (!processIp.equals(other.processIp))
			return false;
		if (processMessage == null) {
			if (other.processMessage != null)
				return false;
		} else if (!processMessage.equals(other.processMessage))
			return false;
		if (processType == null) {
			if (other.processType != null)
				return false;
		} else if (!processType.equals(other.processType))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		return true;
	}

	public OrderProcesses() {
		super();
	}
}